package net.wxxr.thread.pool;

public class RunnablePool {
	private static RunnablePool instance = null;

	public static synchronized RunnablePool getInstance() {
		if (instance == null) {
			instance = new RunnablePool();
		}
		return instance;
	}
	/**
	 * 不受控制，适合短时间能操作完的线程
	 */
	public void addTask(Runnable runnable) {
		Thread thread = new Thread(runnable);
		thread.setPriority(Thread.NORM_PRIORITY - 2);
		thread.start();
	}
}
